<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: 'app',
    data () {
      return {
      }
    },
    methods: {
    },
    mounted () {
      // fix '$router.go(-1)' don't work sometimes
      window.addEventListener('hashchange', () => {
        let currentPath = window.location.hash.slice(1)
        if (this.$route.path !== currentPath) {
          this.$router.push(currentPath)
        }
      }, false)
    }
  }
</script>

<style lang="scss">
  html{
    height: 100%;
  }
  body{
    margin: 0;
    padding: 0;
    height:100%;
    background: #eef1f6;
  }
  #app{
    height: 100%;
  }
</style>
